﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class tiejiang : NPC
    {
        private string shengjileixing;

        public string Shengji 
        { 
            get => shengjileixing; set => shengjileixing = value; 
        }
        public tiejiang(string name,NPCleixing leixing,string shengjileixing):base(name,leixing)
        {
            this.shengjileixing = shengjileixing;
        }

        public override void Speak()
        {
            Console.WriteLine("选择你要升级的类型： 属性：{0}", this.shengjileixing );
            Console.WriteLine("NPC：{0}", base.name1);
        }
    }
}
